<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('工程项目详细')" />
    <th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m-t" id="signupForm">

        <div class="form-group">
            <label class="col-sm-2 control-label">项目名称：</label>
            <div class="form-control-static" th:text="${project.pname}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">图纸：</label>
            <div class="form-control-static" th:text="${project.drawing}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">效果图：</label>
            <div class="pull-left image">
                <img th:src="(${project.picture} == '') ? @{/img/profile.jpg} : @{${project.picture}}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">材料清单：</label>
            <div class="form-control-static" th:text="${project.materials}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">设计说明：</label>
            <div class="form-control-static" th:text="${project.details}">
            </div>
        </div>


    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: jsonview-js" />
<script th:inline="javascript">
    $(function() {
        var projectParam = [[${project.pname}]];
        if ($.common.isNotEmpty(projectParam) && projectParam.length < 2000) {
            $("#projectParam").JSONView(projectParam);
        } else {
            $("#projectParam").text(projectParam);
        }
        var jsonResult = [[${project.jsonResult}]];
        if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
            $("#jsonResult").JSONView(jsonResult);
        } else {
            $("#jsonResult").text(jsonResult);
        }
    });
</script>
</body>
</html>